package com.ws.service.impl;

import com.ws.bean.Routes;
import com.ws.bean.vo.RouteVo;
import com.ws.mapper.RouteMapper;
import com.ws.service.RouteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RouteServiceImpl implements RouteService {
    @Autowired
    private RouteMapper routeMapper;

    @Override
    public List<Routes> list(RouteVo routeVo) {
        return routeMapper.list(routeVo);
    }

    @Override
    public int add(Routes routes) {
        return routeMapper.add(routes);
    }

    @Override
    public int delete(Integer routeId) {
        return routeMapper.delete(routeId);
    }

    @Override
    public Routes getRouteById(Integer routeId) {
        return routeMapper.getRouteById(routeId);
    }

    @Override
    public int update(Routes routes) {
        return routeMapper.update(routes);
    }

    @Override
    public List<Routes> getCategorieList(Integer categorieId) {
        return routeMapper.getCategorieList(categorieId);
    }

    @Override
    public int updateFavoriteNum(Integer routeId) {
        return routeMapper.updateFavoriteNum(routeId);
    }

    @Override
    public int updateFavoriteDeleteNum(Integer routeId) {
        return routeMapper.updateFavoriteDeleteNum(routeId);
    }

    @Override
    public int updateDele(Integer routeId) {
        return routeMapper.updateDele(routeId);
    }

    @Override
    public int selectRouteBySupplierId(Integer id) {
        return routeMapper.selectRouteBySupplierId(id);
    }

    @Override
    public List<Routes> list2(RouteVo routeVo) {
        return routeMapper.list2(routeVo);
    }


}
